import { BrowserRouter, Redirect, Route } from 'react-router-dom'
import GuanQia from './page/GuanQia'
import ShangDian from './page/ShangDian'

function App () {
  return (
    <div className="App">
      <BrowserRouter>
        <Redirect to="/guanqia" from="/" component={GuanQia} />
        <Route path="/guanqia" component={GuanQia} />
        <Route path="/shangdian" component={ShangDian} />
      </BrowserRouter>
    </div>
  );
}

export default App;
